package com.zixi.ai.plugin.entity;

import com.zixi.ai.plugin.entity.groupkey.AiPluginCategoryKey;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.IdClass;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wfg
 */
@Entity
@Table(name = "zx_ai_plugin_category_relation")
@IdClass(AiPluginCategoryKey.class)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AiPluginCategoryRelationEntity {
    /**
     * 插件ID
     */
    @Id
    private Long pluginId;

    /**
     * 类型ID
     */
    @Id
    private Long categoryId;
}
